home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / NetPokerForMacOSX_Server / HoldEmHigh / Player.h < prev    next >
Encoding:
Text File  |  1999-06-25  |  883 b   |  44 lines

  1.  
  2. @class Card, PokerTable,HoldEmHighHoleHand;
  3.  
  4. @interface Player : NSObject
  5. {
  6.     NSString * playerName;
  7.     int stack;        // the money
  8.     HoldEmHighHoleHand *holeHand;
  9.     BOOL onVacation;
  10.     BOOL hasFolded;
  11.     BOOL isMe;
  12.     int row;            // ui matrix location of player
  13.     int column;            // the column of player
  14.     PokerTable *table;
  15. }
  16.  
  17. - (id)initWithName:(NSString *)name pokerTable:(PokerTable *)tourney;
  18. - (NSString *)buttonTitle; // a formatted string with player name and amount and status
  19. - (NSString *)playerName;
  20.  
  21. // call at new game:
  22. - (void)getNewHand;
  23. - (HoldEmHighHoleHand *)holeHand;
  24.  
  25. - (BOOL)isMe;
  26. - (void)setIsMe:(BOOL)isOwner;
  27.  
  28. - (BOOL)onVacation;
  29. - (void)setOnVacation:(BOOL)isOwner;
  30.  
  31. - (void)fold;
  32. - (BOOL)hasFolded;
  33.  
  34. - (void)setStackAmount:(int)amount;
  35. - (int)stackAmount;
  36.  
  37. - (int)column;
  38. - (void)setColumn:(int)aCol;
  39.  
  40. - (int)row;
  41. - (void)setRow:(int)aRow;
  42.  
  43. @end
  44.